package org.jmat.service;

import junit.framework.Assert;

import org.junit.Test;

public class Axis2tests {

	/**
	 * Test the getAllUsers method
	 */
	@Test
	public void testOne(){
		PersonManager p = new PersonManager();
		Assert.assertNotNull(p.getAllUsers());
		Assert.assertTrue(p.getAllUsers().length == 15);
		Assert.assertEquals(0, p.getAllUsers()[0].getId());
	}
	
	/**
	 * Test the getPersonById method
	 */
	@Test
	public void testTwo(){
		PersonManager p = new PersonManager();
		Assert.assertNotNull(p.getPersonById(1).getName());
		Assert.assertTrue(p.getPersonById(1).getId()==1);
	}
}
